﻿using CharHelp;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;

namespace Test
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            CharUtils.BackColor = Brushes.Black;//背景颜色
            CharUtils.BorderColor = Color.Red;//边框颜色
            CharUtils.GridColor = Color.Red;//网格颜色
            CharUtils.ScaleColor = Brushes.White;//刻度颜色
            CharUtils.IsShowGrid = true;//是否显示网格
            CharUtils.IsShowScale = true;//是否显示刻度
            CharUtils.PointSize = 6;//点宽度
            CharUtils.PointColor = Brushes.White;//点颜色
            CharUtils.LineSize = 1;//线宽度
            CharUtils.LineColor = Color.White;//线颜色
            CharUtils.LineType = CharUtils.ELineType.Curve;//线类型
            CharUtils.Point_X = new List<float> { 20, 40, 60, 80, 100, 120, 140, 160, 180, 200, 220, 240, 350 };
            CharUtils.Point_Y = new List<float> { 12.5f, 40, 30, 80, 33.6f, 13, 47.6f, 160, 250, 12.02f, 120, 34, 50 };
            this.pictureBox1.Image = CharUtils.Draw();
            CharUtils.Draw().Save("D://image.bmp");
        }
    }
}
